package com.tanhua.commons.utils;

/**
 * @author lxb哦吼吼
 * @version 1.0
 * @description: TODO
 * @date 2021/11/17 21:03
 */
public class GetQuestions {

    static String question1 = "你觉得自己是个比较懒吗";
    static String question2 = "用下面的一种动物代表自己的性格";
    static String question3 = "吃过晚饭后，你一般会选择做";
    static String question4 = "送你一栋别墅，你会希望是在哪里？";
    static String question5 = "曾经喜欢的东西，你会怎样处理？";
    static String question6 = "你能看透身边人的心思吗？";
    static String question7 = "情侣之间如果没有什么感觉了，你会怎么办？";
    static String question8 = "你会不喜欢和哪种人做朋友？";
    static String question9 = "假如用十年的寿命换回过去或穿越未来的十天时间，你会怎么分配？";
    static String question10 = "你对自己的哪里不满意？";

    static String option1 = "不懒";
    static String option2 = "偶尔会懒一下";
    static String option3 = "懒";
    static String option4 = "非常懒";
    static String option5 = "非常懒";
    static String option6 = "非常懒";
    static String option7 = "非常懒";

    static String score1 = "2";
    static String score2 = "3";
    static String score3 = "4";
    static String score4 = "5";

    public static String getQuestion(int id) {
        switch (id) {
            case 1: {
                return question1;
            }
            case 2: {
                return question2;
            }
            case 3: {
                return question3;
            }
            case 4: {
                return question4;
            }
            case 5: {
                return question5;
            }
            case 6: {
                return question6;
            }
            case 7: {
                return question7;
            }
            case 8: {
                return question8;
            }
            case 9: {
                return question9;
            }
            case 10: {
                return question10;
            }
            default: {
                throw new IndexOutOfBoundsException("超过取值范围");
            }
        }
    }

    public static String getOption(int id) {
        switch (id) {
            case 1: {
                return option1;
            }
            case 2: {
                return option2;
            }
            case 3: {
                return option3;
            }
            case 4: {
                return option4;
            }
            case 5: {
                return option5;
            }
            case 6: {
                return option6;
            }
            case 7: {
                return option7;
            }
            default: {
                throw new IndexOutOfBoundsException("超过取值范围");
            }
        }
    }

    public static String getScore(int id) {
        switch (id) {
            case 1: {
                return score1;
            }
            case 2: {
                return score2;
            }
            case 3: {
                return score3;
            }
            case 4: {
                return score4;
            }
            default: {
                throw new IndexOutOfBoundsException("超过取值范围");
            }
        }
    }
}
